home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mintmant / psetuid.txt < prev    next >
Text File  |  1992-03-24  |  1KB  |  64 lines

  1. Psetuid(2)                Oct. 1, 1991                 Psetuid(2)
  2.  
  3.  
  4.  
  5. NAME
  6.      Psetuid, Psetgid - change a process' user or group id
  7.  
  8. SYNOPSIS
  9.      WORD Psetuid(WORD uid);
  10.      WORD Psetgid(WORD gid);
  11.  
  12. DESCRIPTION
  13.      Psetuid sets the user id of  the  current  process  to  uid,
  14.      which  must  be  a number between 0 and 255 inclusive.  This
  15.      function call will fail if the user id is not already 0,  so
  16.      once a process' user id is set it is fixed.  Psetuid returns
  17.      uid, if the call is successful, and EACCDN  if  the  process
  18.      does  not have the authority to change its own user id (i.e.
  19.      if its effective user id is not 0 at the time of the call).
  20.  
  21.      Similarly, Psetgid sets the group id of the current  process
  22.      to gid, which again must be between 0 and 255. The new group
  23.      id gid is returned if successful, and EACCDN is returned  if
  24.      permission to change groups is denied.
  25.  
  26. SEE ALSO
  27.      Pgetuid(2)
  28.  
  29. BUGS
  30.      Security in MiNT is a joke; don't rely  on  these  calls  to
  31.      actually  protect  you from anything, it's more for informa-
  32.      tional purposes.
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60. Version 0.9   Last change: MiNT Programmer's Manual             1
  61.  
  62.  
  63.  
  64.